<template>
    <div class="layout-container">
        <div class="right">
            <div class="header">
                <Header></Header>
                <Menu></Menu>
            </div>
            <el-scrollbar>
                <div class="main">
                    <router-view v-slot="{ Component }">
                        <component :is="Component" />
                    </router-view>
                </div>
            </el-scrollbar>

        </div>
    </div>
</template>

<script>

import Menu from "./Menu.vue";
import Header from "./Header.vue"
export default {
    components: {
        Menu,
        Header
    },
    setup() {
        return {

        }
    },


}
</script>

<style lang="less" scoped>
.layout-container {
    width: 100vw;
    height: 100vh;
    display: flex;
}



.right {
    flex: 1;
    background-color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main {
    width: 100%;
    flex: 1;
    overflow: hidden auto;
    padding: 27px 52px;
    box-sizing: border-box;
}
</style>